from rest_framework import serializers
from .models import Story,User,UserInfo,Author,Cate,Section,Grade


class CateSerializers(serializers.ModelSerializer):
    class Meta:
        model = Cate
        fields = "__all__"

class UserSerializers(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"


class UserInfoSerializers(serializers.ModelSerializer):
    class Meta:
        model = UserInfo
        fields = "__all__"


class AuthorSerializers(serializers.ModelSerializer):
    class Meta:
        model = Author
        fields = "__all__"


class StorySerializers(serializers.ModelSerializer):
    class Meta:
        model = Story
        fields = "__all__"


class SectionSerializers(serializers.ModelSerializer):
    class Meta:
        model = Section
        fields = "__all__"


class GradeSerializers(serializers.ModelSerializer):
    class Meta:
        model = Grade
        fields = "__all__"